package com.example.spring_security.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description SecurityConfig4 配套;自定义登录页面
 * @Author lihw
 * @Date 2024/5/29 9:18
 */
@Slf4j
@Controller
public class Login2Controller {

    @GetMapping("/login")
    public String login() {
        return "login";
    }

    public record LoginUser(String username, String password) {}
}
